/**
 * 
 */
package dk.itu.mobile.server;

import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

/**
 * @author niebje
 * 
 */
@Path("/taskmanager")
public class RestServer {

	@GET
	@Path("tasks")
	@Produces(MediaType.TEXT_XML)
	public String tasks(@QueryParam("serviceOption ") int serviceOption) {
		return "";
	}

	@GET
	@Path("task/{id}")
	@Produces(MediaType.TEXT_XML)
	public String task(@PathParam("id") String id, @QueryParam("serviceOption ") int serviceOption) {
		return "";
	}

	@DELETE
	@Path("task/{id}")
	@Produces(MediaType.TEXT_HTML)
	public String deleteTask(@PathParam("id") String id, @QueryParam("serviceOption ") int serviceOption) {
		return "";
	}

	@POST
	@Path("tasks")
	@Consumes(MediaType.APPLICATION_XML)
	@Produces(MediaType.TEXT_HTML)
	public String createTask(String task, @QueryParam("serviceOption ") int serviceOption) {
		return "";
	}
}
